#include<bits/stdc++.h>
#define int long long
#define fi first
#define se second
#define endl "\n"
#define _for(i, a, b) for(int i = a; i <= b; ++i)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;

const int N = 1e5 + 10;

signed main() {
	int n, a, b, ret = 91e18;;
	cin >> n >> a >> b; 
	string s;
	cin >> s;
	s = s + s;
	s = ' ' + s;
	_for(i, 0, n - 1) {
		int t = i * a;
		string p = s.substr(i + 1, n);
	//	cout << p << endl;
		int l = 0, r = n - 1;
		while(l < r) {
			if(p[l++] != p[r--]) {
				t += b;
			}
		}
		ret = min(ret, t);
	}
	cout << ret << endl;
	return 0;
}


